# tomcat
FROM tomcatjdk8:latest
# sign name
MAINTAINER esteban "esteban.xie@gmail.com"

ADD  *.war /tomcat/webapps/

# Ensure UTF-8 locale
RUN locale-gen zh_CN.UTF-8 &&\
  DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
RUN locale-gen zh_CN.UTF-8
ENV LANG zh_CN.UTF-8
ENV LANGUAGE zh_CN:zh
ENV LC_ALL zh_CN.UTF-8

#app logs
VOLUME /var/logs

# Tomcat expose port 8080
EXPOSE 8080

# default run tomcat
CMD ["/run.sh"]